$(function(){
    $.ajax({
        url:server_url+"buyer/product/rest/getBuyerInfo.do",
        data:{userId:userid,rand:Math.random()},
        success:function(data){
            console.log(data)
            $("#phone").text(data.data.buyerTel)
            $("#buyerName").text(data.data.buyerName)
        }
    })
})
function change_name(){
    window.location.href=server_url+"buyerOrder/change_name.do"
}
function logout(){
    localStorage.clear();
    window.location.href = server_url + '/login.do';
}